<template>
    <div class="container">
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item v-for="item in bannerList">
                <van-image  fit="contain"
                    :src="item.img" />
            </van-swipe-item>
        </van-swipe>
    </div>
</template>

<script>
export default {
    // props:{
    //     bannerList:Array, 
    //     default:[]
    // }
    props: ['bannerList'],
}
</script>

<style scoped>
.container{
    height: 200px;
}
.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    text-align: center;
    background-color: #39a9ed;
}
</style>